﻿<phone:PhoneApplicationPage
    x:Class="VoiceControl.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    shell:SystemTray.IsVisible="True" shell:SystemTray.Opacity="0">
    <shell:SystemTray.ProgressIndicator>
        <shell:ProgressIndicator x:Name="LoadingBar" IsIndeterminate="True" Text="连接中..."/>
    </shell:SystemTray.ProgressIndicator>
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar>
            <shell:ApplicationBarIconButton x:Name="BB_Connect" IconUri="/Assets/AppBar/share.png" Text="建立连接" Click="BB_Connect_Click"/>
            <shell:ApplicationBarIconButton x:Name="BB_Voice" IconUri="/Assets/AppBar/microphone.png" Text="发送命令" Click="BB_Click"/>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>

    <toolkit:TransitionService.NavigationInTransition>
        <toolkit:NavigationInTransition>
            <toolkit:NavigationInTransition.Backward>
                <toolkit:TurnstileTransition  Mode="BackwardIn"/>
            </toolkit:NavigationInTransition.Backward>
            <toolkit:NavigationInTransition.Forward>
                <toolkit:TurnstileTransition Mode="ForwardIn"/>
            </toolkit:NavigationInTransition.Forward>
        </toolkit:NavigationInTransition>
    </toolkit:TransitionService.NavigationInTransition>
    <toolkit:TransitionService.NavigationOutTransition>
        <toolkit:NavigationOutTransition>
            <toolkit:NavigationOutTransition.Backward>
                <toolkit:TurnstileTransition Mode="BackwardOut"/>
            </toolkit:NavigationOutTransition.Backward>
            <toolkit:NavigationOutTransition.Forward>
                <toolkit:TurnstileTransition Mode="ForwardOut"/>
            </toolkit:NavigationOutTransition.Forward>
        </toolkit:NavigationOutTransition>
    </toolkit:TransitionService.NavigationOutTransition>
    
    <!--LayoutRoot 是包含所有页面内容的根网格-->

    <phone:Pivot x:Name="Index" Title="语音协同工作系统" Margin="0,0,0,0">
        <phone:Pivot.Background>
            <ImageBrush Stretch="Fill" ImageSource="/bg.jpg"/>
        </phone:Pivot.Background>

        <phone:PivotItem CacheMode="{x:Null}" Header="基本操作">
            <Grid x:Name="LayoutRoot" Background="Transparent">
                <StackPanel>
                    <TextBlock Text="您可执行的操作类别如下：" FontSize="28" Margin="10,0,0,0"></TextBlock>
                    <ListBox Margin="0,10,0,0" Height="470">
                    	<StackPanel toolkit:TiltEffect.IsTiltEnabled="True" toolkit:TiltEffect.SuppressTilt="True" Height="100" Orientation="Horizontal" Width="446" Margin="0,10">
                    		<Image Width="100" Source="20131218074936424_easyicon_net_128.png"/>
                    		<TextBlock TextWrapping="Wrap" Text="搜索某项内容" Width="338" FontSize="32" Margin="0" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                    	</StackPanel>
                        <StackPanel toolkit:TiltEffect.IsTiltEnabled="True" toolkit:TiltEffect.SuppressTilt="True"  Height="100" Orientation="Horizontal" Width="446" Margin="0,10">
                    		<Image Width="100" Source="20131218074958680_easyicon_net_256.png"/>
                    		<TextBlock TextWrapping="Wrap" Text="Microsoft Office程序" Width="338" FontSize="32" Margin="0" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                    	</StackPanel>
                        <StackPanel Height="100" Orientation="Horizontal" Width="446" Margin="0,10" toolkit:TiltEffect.IsTiltEnabled="True" toolkit:TiltEffect.SuppressTilt="True" >
                    		<Image Width="100" Source="20131218075053317_easyicon_net_144.png"/>
                    		<TextBlock TextWrapping="Wrap" Text="打开互联网网站" Width="338" FontSize="32" Margin="0" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                    	</StackPanel>
                        <StackPanel toolkit:TiltEffect.IsTiltEnabled="True" toolkit:TiltEffect.SuppressTilt="True"  Height="100" Orientation="Horizontal" Width="446" Margin="0,10">
                    		<Image Width="100" Source="Windows Phone-03.png"/>
                    		<TextBlock TextWrapping="Wrap" Text="操作Windows操作系统" Width="338" FontSize="32" Margin="0" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                    	</StackPanel>
                    </ListBox>
                </StackPanel>
            </Grid>
        </phone:PivotItem>
        <phone:PivotItem CacheMode="{x:Null}" Header="文件获取">
            <Grid>
                <ListBox x:Name="FileList" Margin="10">
                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            <StackPanel Margin="0,10" Orientation="Horizontal">
                                <TextBlock FontSize="22" Text="{Binding Name}" TextTrimming="WordEllipsis" Tag="{Binding Url}" Width="350"></TextBlock>
                                <TextBlock Margin="10,0,0,0" FontSize="22" Text="{Binding Size}"></TextBlock>
                            </StackPanel>
                        </DataTemplate>
                    </ListBox.ItemTemplate>
                </ListBox>
            </Grid>
        </phone:PivotItem>
    </phone:Pivot>
</phone:PhoneApplicationPage>